import React, { Component } from 'react';

export default class Child1 extends Component {
  render() {
    return (
      <div className="child1">
        {/* 接收消息 */}
        <h3>我是Child1（哥）组件</h3>
        <div>弟弟传来的消息：{this.props.msg}</div>
      </div>
    );
  }
}
